import { Commit } from "vuex";
interface ICommit {
  commit: Commit;
}
interface IValues {
  values: {
    username: string;
    password: string;
  };
}
interface RValues {
  values: {
    username: string;
    phone: string;
    password: string;
  };
}

interface IUser {
  namespaced: boolean;
  actions: {
    getLogin: ({ commit }: ICommit, { values }: IValues) => void;
    getRegister: ({ commit }: ICommit, { values }: RValues) => void;
  };
}

export { IUser };
